import requset from '../../utils/requset'

// 销售统计
export const orderAmount = (params) => requset({
  url: '/order-service/report/orderAmount',
  params
})

// 工单统计
export const taskReportInfo = (params) => requset({
  url: `/task-service/task/taskReportInfo/${params.start}/${params.end}`
})
export const orderSummary = (params) => requset({
  url: '/order-service/report/orderCount',
  params
})

// 获取销售前几的商品
export const skuTop = (params) => requset({
  url: `/order-service/report/skuTop/${params.topValue}/${params.start}/${params.end}`
})

// 获取销售额统计
export const amountCollect = (params) => requset({
  url: `/order-service/report/amountCollect/${params.collectType}/${params.start}/${params.end}`
})

// 根据地区汇总销售额数据(销售量分布)
export const regionCollect = (params) => requset({
  url: `/order-service/report/regionCollect/${params.start}/${params.end}`
})

// 合作商点位汇总统计
export const nodeCollect = () => requset({
  url: '/vm-service/node/nodeCollect'
})

// 获取点位总数
export const count = () => requset({
  url: '/vm-service/node/count'
})

// 获取合作商总数
export const partner = () => requset({
  url: '/user-service/partner/count'
})
